home *** CD-ROM | disk | FTP | other *** search
/ Scene 96 / Scene 96 International Edition (Zyklop Software) (Disc 2) (1997).iso / misc / coding / e_os300b / wc_debug / test.c < prev   
Encoding:
C/C++ Source or Header  |  1996-11-26  |  782 b   |  23 lines

  1. //╔══════════════════════════════════════════════════════════════════════════╗
  2. //║                                                                          ║
  3. //║ This example show how to use EOS Debugger with Watcom C                  ║
  4. //║                                                                          ║
  5. //║                                                                          ║
  6. //║                                                                          ║
  7. //╚══════════════════════════════════════════════════════════════════════════╝
  8.  
  9. #include <process.h>
  10.  
  11. void wait_();
  12. #pragma aux wait_ modify [eax]=  \
  13.    "xor ah,ah"\
  14.    "int 16h";
  15.  
  16. void main()
  17. {
  18.   init_EOS();
  19.   debug();
  20.   printf("    ■ Hello world...\x0D\x0A");
  21.   wait_();
  22.   exit(0);
  23. }